/**
 * CONFIDENTIAL and PROPRIETARY
 *   Copyright (c) ZFen Automotive System Co.,LTD. All rights reserved.
 *
 * FILE INFORMATION
 *   FILE NAME: main.c
 *   AUTHOR(S): Caven Li
 *
 * BRIEF INFORMATION
 *   Application entry process function file.
 */

/*---------------------------------------------------------------------------
 *         Header Files
 *---------------------------------------------------------------------------*/
#include "lv_porting.h"
#include "lvgl.h"

/*---------------------------------------------------------------------------
 *         Local Defines
 *---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------
 *         Local Variables
 *---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------
 *         Global Variables
 *---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------
 *         Local Functions
 *---------------------------------------------------------------------------*/
/**
 * Abstract:
 *   Function.
 *
 * Parameter:
 *   argc: Parameter.
 *
 * Return:
 *   None.
 */

/*---------------------------------------------------------------------------
 *         Global Functions
 *---------------------------------------------------------------------------*/
/**
 * Abstract:
 *   Function.
 *
 * Parameter:
 *   argc: Parameter.
 *
 * Return:
 *   None.
 */
int main(void)
{
    /* LVGL porting initialization process. */
    lv_porting_init();

    /* Create a label for displaying. */
    lv_obj_t *label = lv_label_create(lv_scr_act());
    lv_label_set_text(label, "Hello World!");
    lv_obj_center(label);

    /* Runing LVGL function process. */
    while (1)
    {
        lv_timer_handler();
        lv_porting_delay();
    }

    return 0;
}
